import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import UI from "@/components/library";
import "normalize.css";
import "@/assets/style/common.less";

// 判断当前程序运行在开发环境
if (process.env.NODE_ENV === "development") {
  // 动态引入 worken
  const worker = require("./mocks/worker").default;
  worker.start({ onUnhandledRequest() {} }).then(() => {
    console.log("请求拦截成功");
  });
}
createApp(App).use(store).use(router).use(UI).mount("#app");
